package com.huluobo.a2109kotlinshopping.db

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import com.huluobo.a2109kotlinshopping.cart.CartBean

/**
 *  Created by LC on 2024/1/20.
 */
@Dao
interface OrderDao {
    @Insert
    fun insertOrderBeanList(orderList: List<CartBean>)

    @Query("delete from order_bean")
    fun deleteAllOrder()

    @Query("select * from order_bean")
    fun queryOrder(): List<CartBean>
}